package com.yc.common.constant;

/**
 * Token相关常量
 */
public class TokenConstant {

    /**
     * 访问Token键名
     */
    public static final String ACCESS_TOKEN = "access_token";

    /**
     * 刷新Token键名
     */
    public static final String REFRESH_TOKEN = "refresh_token";

    /**
     * Token前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 访问Token Redis键前缀
     */
    public static final String ACCESS_TOKEN_KEY = "access_token:";

    /**
     * 刷新Token Redis键前缀
     */
    public static final String REFRESH_TOKEN_KEY = "refresh_token:";

    /**
     * 备份信息 Redis键前缀
     */
    public static final String BACKUP_PREFIX = "backup:";

    /**
     * 访问Token有效期（分钟）
     */
    public static final int ACCESS_TOKEN_EXPIRE = 30;

    /**
     * 刷新Token有效期（天）
     */
    public static final int REFRESH_TOKEN_EXPIRE = 3;

    /**
     * 备份Token有效期（天）
     */
    public static final int BACKUP_INFO_EXPIRE = 3;
}